package com.vivo.system.entity;

import java.io.Serializable;
import java.util.Date;

public class SmsEntity implements Serializable {
    String smsCode;
    String phone;

    long updTime = 0;

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public long getUpdTime() {
        return updTime;
    }

    public void setUpdTime(long updTime) {
        this.updTime = updTime;
    }

    public boolean isNotTimeout() {
        long curTimestamp = (new Date().getTime());
        return (curTimestamp - updTime) < 60*1000;
    }
}
